<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<h1>我是JSP页面</h1>
	<!-- 以下是java代码部分 -->
	<% java.util.Date now = new java.util.Date();%>
	<h2>
		<%= now.getHours() %> : <%= now.getMinutes() %> : <%= now.getSeconds()%>	
	</h2>
	
	<%--java代码 --%> 
	<%
		int i = 1, y=10; 
		int sum = i + y; 
		out.print("Hello JSP" + sum); 
	%> 
	
	
	
</body>
</html>